package com.woniuxy.producerconsumer.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: 马宇航
 * @Description: 生产消费模式的配置类
 * @DateTime: 22/12/29/0029 14:55
 * @Component: 成都蜗牛学苑
 **/
@Configuration
public class ProducerConsumerConfig {
    @Bean
    public Queue myQueue(){
        return new Queue("PCQueue");
    }
}
